﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace eLoan.Models
{
    public class PenaltyHistoryModel
    {
        [Display(Name = "Select a branch")]
        public IEnumerable<SelectListItem> Branches { get; set; }

        public string SelectedBranchCode { get; set; }

        [Display(Name = "Loan date from")]
        [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:MM/dd/yyyy}")]
        public DateTime LoanDateFrom { get; set; }

        [Display(Name = "Loan date to")]
        [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:MM/dd/yyyy}")]
        public DateTime LoanDateTo { get; set; }

        [Display(Name = "Search text")]
        public string SearchText { get; set; }

        public List<LoanPenaltyHistoryItem> PenaltyItems { get; set; }

        public List<LoanPenaltyPaymentHistoryItem> PenaltyPaymentItems { get; set; }

        [Display(Name = "Total Penalty")]
        public decimal TotalPenalty { get; set; }

        [Display(Name = "Total Penalty Payment")]
        public decimal TotalPenaltyPayment { get; set; }

    }
}